.class Lcom/waiqin365/lightapp/chexiao/az;
.super Landroid/os/Handler;


# instance fields
.field private a:Ljava/lang/ref/WeakReference;


# direct methods
.method public constructor <init>(Lcom/waiqin365/lightapp/chexiao/CXKCActivity;)V
    .locals 1

    invoke-direct {p0}, Landroid/os/Handler;-><init>()V

    new-instance v0, Ljava/lang/ref/WeakReference;

    invoke-direct {v0, p1}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V

    iput-object v0, p0, Lcom/waiqin365/lightapp/chexiao/az;->a:Ljava/lang/ref/WeakReference;

    return-void
.end method


# virtual methods
.method public handleMessage(Landroid/os/Message;)V
    .locals 5

    const/4 v4, 0x0

    iget-object v0, p0, Lcom/waiqin365/lightapp/chexiao/az;->a:Ljava/lang/ref/WeakReference;

    invoke-virtual {v0}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/chexiao/CXKCActivity;

    if-nez v0, :cond_0

    :goto_0
    return-void

    :cond_0
    invoke-virtual {v0}, Lcom/waiqin365/lightapp/chexiao/CXKCActivity;->dismissProgressDialog()V

    iget v1, p1, Landroid/os/Message;->what:I

    packed-switch v1, :pswitch_data_0

    goto :goto_0

    :pswitch_0
    iget-object v1, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    check-cast v1, Lcom/waiqin365/lightapp/chexiao/b/a/am;

    invoke-virtual {v1}, Lcom/waiqin365/lightapp/chexiao/b/a/am;->b()Z

    move-result v2

    if-eqz v2, :cond_2

    const-string/jumbo v2, "1"

    iget-object v3, v1, Lcom/waiqin365/lightapp/chexiao/b/a/am;->b:Ljava/lang/String;

    invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_2

    invoke-static {v0}, Lcom/waiqin365/lightapp/chexiao/CXKCActivity;->b(Lcom/waiqin365/lightapp/chexiao/CXKCActivity;)Landroid/view/View;

    move-result-object v2

    invoke-virtual {v2, v4}, Landroid/view/View;->setVisibility(I)V

    invoke-static {v0}, Lcom/waiqin365/base/db/offlinedata/w;->a(Landroid/content/Context;)Lcom/waiqin365/base/db/offlinedata/w;

    move-result-object v2

    iget-object v3, v1, Lcom/waiqin365/lightapp/chexiao/b/a/am;->f:Ljava/util/List;

    invoke-virtual {v2, v3}, Lcom/waiqin365/base/db/offlinedata/w;->a(Ljava/util/List;)Z

    move-result v2

    if-nez v2, :cond_1

    const v2, 0x7f080814

    invoke-virtual {v0, v2}, Lcom/waiqin365/lightapp/chexiao/CXKCActivity;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v2}, Lcom/waiqin365/lightapp/chexiao/CXKCActivity;->showToast(Ljava/lang/String;)V

    :cond_1
    new-instance v2, Lcom/waiqin365/lightapp/chexiao/c/s;

    invoke-direct {v2}, Lcom/waiqin365/lightapp/chexiao/c/s;-><init>()V

    iget-object v3, v1, Lcom/waiqin365/lightapp/chexiao/b/a/am;->d:Ljava/lang/String;

    iput-object v3, v2, Lcom/waiqin365/lightapp/chexiao/c/s;->a:Ljava/lang/String;

    iget-object v3, v1, Lcom/waiqin365/lightapp/chexiao/b/a/am;->e:Ljava/lang/String;

    iput-object v3, v2, Lcom/waiqin365/lightapp/chexiao/c/s;->b:Ljava/lang/String;

    invoke-static {v2}, Lcom/waiqin365/lightapp/chexiao/d/a;->a(Lcom/waiqin365/lightapp/chexiao/c/s;)V

    iget-object v1, v1, Lcom/waiqin365/lightapp/chexiao/b/a/am;->e:Ljava/lang/String;

    invoke-static {v0, v1}, Lcom/waiqin365/lightapp/chexiao/CXKCActivity;->a(Lcom/waiqin365/lightapp/chexiao/CXKCActivity;Ljava/lang/String;)V

    const v1, 0x7f080815

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/chexiao/CXKCActivity;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/chexiao/CXKCActivity;->showToast(Ljava/lang/String;)V

    goto :goto_0

    :cond_2
    const-string/jumbo v2, "2"

    iget-object v3, v1, Lcom/waiqin365/lightapp/chexiao/b/a/am;->b:Ljava/lang/String;

    invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_3

    invoke-static {v0}, Lcom/waiqin365/lightapp/chexiao/CXKCActivity;->b(Lcom/waiqin365/lightapp/chexiao/CXKCActivity;)Landroid/view/View;

    move-result-object v1

    const/16 v2, 0x8

    invoke-virtual {v1, v2}, Landroid/view/View;->setVisibility(I)V

    invoke-static {v0}, Lcom/waiqin365/lightapp/chexiao/CXKCActivity;->c(Lcom/waiqin365/lightapp/chexiao/CXKCActivity;)Landroid/view/View;

    move-result-object v0

    invoke-virtual {v0, v4}, Landroid/view/View;->setVisibility(I)V

    goto :goto_0

    :cond_3
    iget-object v2, v1, Lcom/waiqin365/lightapp/chexiao/b/a/am;->c:Ljava/lang/String;

    invoke-static {v2}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v3

    if-eqz v3, :cond_4

    iget v1, v1, Lcom/waiqin365/lightapp/chexiao/b/a/am;->a:I

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/chexiao/CXKCActivity;->showToast(I)V

    goto/16 :goto_0

    :cond_4
    invoke-virtual {v0, v2}, Lcom/waiqin365/lightapp/chexiao/CXKCActivity;->showToast(Ljava/lang/String;)V

    goto/16 :goto_0

    nop

    :pswitch_data_0
    .packed-switch 0x1002
        :pswitch_0
    .end packed-switch
.end method
